package org.springframework.context.support;

import org.springframework.beans.BeansException;

/**
 * @author xiaohei
 */
public class ClasspathXmlApplicationContext extends AbstractXmlApplicationContext {

    private String[] locations;

    public ClasspathXmlApplicationContext(String location) {
        this(new String[]{location});
    }

    public ClasspathXmlApplicationContext(String... configLocations) throws BeansException {
        this.locations = configLocations;
        refresh();
    }

    @Override
    protected String[] getConfigLocation() {
        return locations;
    }
}
